package com.godyao.mall.coupon.api.feign;

import com.godyao.mall.common.to.SkuReductionTo;
import com.godyao.mall.common.to.SpuBoundTo;
import com.godyao.mall.core.model.ResultMsg;
import com.godyao.mall.coupon.api.feign.fallback.CouponFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author godyao
 * @date 2022/4/3
 */
@FeignClient(value = "mall-coupon", contextId = "mall-coupon", fallback = CouponFeignFallback.class)
public interface CouponFeign {
    @PostMapping("/mall-coupon/sms/spubounds/save")
    ResultMsg saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/mall-coupon/sms/skufullreduction/saveinfo")
    ResultMsg saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
